a = [1,8,3,6,2,6,9,3,2]
b = []
c= []
while len(a)>0:
    number = a.pop()
    if number%2 ==0:
        b.append(number)
        print(b)
    else:
        c.append(number)
        print(c)
